package com.cskaoyan.demo6.servlet;

import com.cskaoyan.demo6.bean.vo.BaseRespVo;
import com.cskaoyan.demo6.bean.vo.HomeIndexVo;
import com.cskaoyan.demo6.service.HomeService;

import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 * @Description：
 * @Author：BLUEBLANK
 * @Date：2024/4/20 20:30
 */

@WebServlet("/wx/home/*")
public class HomeIndexServlet  extends CommonServlet{
    HomeService homeService;
    public BaseRespVo index(HttpServletRequest request, HttpServletResponse response) {

       HomeIndexVo homeIndexVo = homeService.index();
        return BaseRespVo.ok(homeIndexVo);
    }
}
